package com.atguigu.vod.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-order")//, fallback = OrderFile.class
public interface OrderClient {
    /**
     *
     *
     * @param memberid 人id
     * @param id 课程id
     * @author 粟德桡
     * @date 2021/12/4 14:13
     * @return boolean
     */
    //查询订单信息
    @GetMapping("/eduorder/order/isBuyCourse/{memberid}/{id}")
    public boolean isBuyCourse(@PathVariable("memberid") String memberid, @PathVariable("id") String id);
}
